package parkshop.pmcourse.mapping;

import java.util.List;

import parkshop.pmcourse.domain.Shop;
import parkshop.pmcourse.dto.PageBean;
import parkshop.pmcourse.dto.ShopBean;

public interface ShopMapper {
	
	Shop selectByShopOwnerId(Long shopOwnerId);
	Shop selectByName(String name);
	Shop selectByPrimaryKey(Long id);
	int insertSelective(Shop shop);
	int updateByPrimaryKeySelective(Shop shop);
	int deleteByName(String name);
	int deleteByPrimaryKey(Long id);
	
	List<Shop> selectByIsApproved(ShopBean shopPage);
	
	int selectSumByIsApproved(Byte isApprove);
	
	List<Shop> selectTenShop(PageBean pageBean);	
	int selectSum();

}
